package com.ztgf.order.models.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-06-29 09:42
 * Description: 订单详情商品信息VO
 */
@Data
public class OrderDetailsCommodityVO implements Serializable {

    @ApiModelProperty(value = "订单商品关联表id")
    private Long id;

    @ApiModelProperty(value = "商品id")
    private Long commodityId;

    @ApiModelProperty(value = "商品主图")
    private String logUrl;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品单价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal price;

    @ApiModelProperty(value = "商品数量")
    private Integer number;

    @ApiModelProperty(value = "商品小计")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal moeny;

    @ApiModelProperty(value = "实付金额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal actualMoney;

    @ApiModelProperty(value = "支付详情")
    private List<OrderPendingPayDetailsVO> payDetails;
}
